package com.longlong.cli;

import picocli.CommandLine;

@CommandLine.Command(name = "mul", description = "乘法运算", mixinStandardHelpOptions = true)
public class MulCommand implements Runnable {


    @CommandLine.Parameters(index = "0", description = "要相乘的数字")
    private int a;

    @CommandLine.Parameters(index = "1", description = "要相乘的数字")
    private int b;

    @Override
    public void run() {
        System.out.println(a +" * " + b);

        System.out.println(a * b);
    }

}
